public class test03 {
    public static void main(String[] args) {
        for(int i=1988;i<=2109;i++){
            if((i%4==0&&i%100!=0)||i%400==0){
                System.out.println(i+"是闰年");
            }
        }
        System.out.println("=========================");


        int minute=0;
        int water=0;
        while(water<10){
            minute++;
            water+=minute-3;
            if(water<0){
                water=0;
            }
        }
        System.out.println("需要花费"+minute);


    }
}
